#-*- coding: utf-8 -*-
from ListeChainee import *
from Lifo import *
from Fifo import *

if 1:
	x = ListeChainee(1, 2, 3)
	print x #[1, 2, 3]
	x.insertBeginning(0)
	x.insertEnd(42)
	print x #[0, 1, 2, 3, 42]
	x.insert(2, 55)
	print x #[0, 1, 55, 2, 3, 42]
	print x.get(3) #2
	x.remove(0)
	print x #[1, 55, 2, 3, 42]
	x[0] = 99
	print x #[99, 55....]
	print 42 in x
	print x * 2
elif 0:
	x = Lifo()
	x.push(3)
	x.push(5)
	print "********"
	print x
	x.pop()
	print "********"
	print x
	x.pop()
	#print x.top()
elif 1:
	x = Fifo()
	x.enqueue(1)
	x.enqueue(2)
	x.enqueue("bouh")
	print x.first()
	x.dequeue()
	print x
